﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DemoCore.Routings
{
    /// <summary>
    /// Host信息
    /// </summary>
    [DataContract]
    [Serializable]
    public class HostInfo
    {
        /// <summary>
        /// 主信息
        /// </summary>
        [DataMember]
        public string Master { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// 性能
        /// </summary>
        [DataMember]
        public double Performance { get; set; }

        /// <summary>
        /// 是否活动
        /// </summary>
        [DataMember]
        public bool IsActived { get; set; }

        /// <summary>
        /// 是否停止
        /// </summary>
        [DataMember]
        public bool IsStop { get; set; }

        /// <summary>
        /// 失败次数
        /// </summary>
        [DataMember]
        public long Fail { get; set; }

        /// <summary>
        /// 总计失败次数
        /// </summary>
        [DataMember]
        public long TotalFail { get; set; }

        /// <summary>
        /// 成功次数
        /// </summary>
        [DataMember]
        public long Success { get; set; }
    }
}
